import { version } from '../../package';

export default {
  menuAuth: false,
  // 侧边栏默认折叠状态
  menu: {
    asideCollapse: false,
    // 是否开启menuAuthr认证
    isAuthentication: false,
    // 白名单
    whiteList: ['/login', '/authredirect']
  },
  // 版本
  releases: {
    version
  },

  // Cookie的设置 。注意 如果在统一域名下存在多个工程，请设置path来区分工程  path = '/simcere-weixin'
  cookie: {
    path: '/oa'
  },
  // 注册的主题
  theme: {
    list: [
      {
        title: 'd2admin 经典',
        name: 'd2',
        preview: 'image/theme/d2/preview@2x.png'
      },
      {
        title: '紫罗兰',
        name: 'violet',
        preview: 'image/theme/violet/preview@2x.png'
      },
      {
        title: '简约线条',
        name: 'line',
        backgroundImage: 'image/theme/line/bg.jpg',
        preview: 'image/theme/line/preview@2x.png'
      },
      {
        title: '流星',
        name: 'star',
        backgroundImage: 'image/theme/star/bg.jpg',
        preview: 'image/theme/star/preview@2x.png'
      },
      {
        title: 'Tomorrow Night Blue (vsCode)',
        name: 'tomorrow-night-blue',
        preview: 'image/theme/tomorrow-night-blue/preview@2x.png'
      }
    ]
  },
  // 是否默认开启页面切换动画
  transition: {
    active: true
  },
  // 在读取持久化数据失败时默认用户信息
  user: {
    info: {
      name: 'Ghost'
    }
  },
  page: {
    pageNumber: 10,
    pageSize: [5, 10, 20, 50, 100],
    layout: 'total, prev, pager, next, jumper'
  },
  // 日期的基本格式化方式
  data_format: 'YYYY-MM-DD HH:mm:ss'
};
